/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.stress.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.system.entity.Tenant;

/**
 * 测点应力历史实时数据实体类
 *
 * @author Yanzujian
 * @since 2021-03-26
 */
@Data
@TableName("stress_history")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "History对象", description = "测点应力历史实时数据")
public class History extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 测点ID
	*/
		@ApiModelProperty(value = "测点ID")
		private Long positionId;
	/**
	 * 传感器ID
	 */
		@ApiModelProperty(value = "传感器ID")
		private Long sensorId;
	/**
	 * 传感器编号
	 */
		@ApiModelProperty(value = "传感器编号")
		private String sensorCode;
	/**
	 * 传感器通道
	 */
		@ApiModelProperty(value = "传感器通道")
		private String sensorChannel;
	/**
	* 开始时间
	*/
		@ApiModelProperty(value = "开始时间")
		private LocalDateTime startTime;
	/**
	* 采样间隔
	*/
		@ApiModelProperty(value = "采样间隔")
		private Integer sampleInterval;
	/**
	* 采样点数
	*/
		@ApiModelProperty(value = "采样点数")
		private Integer sampleCount;
	/**
	* 采样值
	*/
		@ApiModelProperty(value = "采样值")
		private String sampleValue;

	/**
	 * 采样单位
	 */
		@ApiModelProperty(value = "采样单位")
		private String sampleUnit;

	/**
	 * 采样值类型
	 */
		@ApiModelProperty(value = "采样值类型")
		private Integer sampleType;
}
